package com.turning.resume.common;

import lombok.Data;

import java.io.Serializable;

/**
 * ClassName: Result
 * Package: com.turning.resume.common
 * Description:
 *
 * @Author M4N715
 * @Create 2025/9/21 13:52
 * @Version 1.0
 */
@Data
public class Result implements Serializable {

    private Integer status; //编码：1成功，0和其它数字为失败
    private String message; //错误信息

    public static Result success() {
        Result result = new Result();
        result.setStatus(200);
        result.setMessage("简历填写成功，回家等通知 o(=•ェ•=)m");
        return result;
    }

    public static Result error(String msg) {
        Result result = new Result();
        result.setStatus(500);
        result.setMessage(msg);
        return result;
    }

}
